import { request } from '@/common/js/request.js'

// 查询角色拥有的菜单数组
export function listRoleMenus(roleId) {
  return request({
    url: '/admin-api/system/permission/list-role-resources?roleId=' + roleId,
    method: 'get'
  })
}


// 查询用户拥有的角色数组
export function listUserRoles(userId) {
  return request({
    url: '/admin-api/system/permission/list-user-roles?userId=' + userId,
    method: 'get'
  })
}

